package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.*;
import org.checkerframework.checker.units.qual.C;

/**
 * <p>
 * 
 * </p>
 *
 * @author fz
 * @since 2024-08-20
 */
@Getter
@Setter
@TableName("complaint")
@Data

public class Complaint extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 投诉类型
     */
    private String type;

    /**
     * 投诉内容
     */
    private String content;

    /**
     * 投诉用户
     */
    private Integer userId;

    /**
     * 投诉提交时间
     */
    private LocalDateTime handleTime;

    /**
     * 状态
     */
    private Integer status;

    public Complaint(Long id, Integer status,Integer statu) {
        super(id);
        this.status = statu;
    }

    public Complaint(){}
    public Complaint(String type,String content,Integer userId,LocalDateTime handleTime,Integer status)
    {
        this.type=type;
        this.content=content;
        this.userId=userId;
        this.handleTime=handleTime;
        this.status=status;
    }

    public Complaint(Long id,String type,String content,Integer userId,LocalDateTime handleTime,Integer status)
    {
        super(id);
        this.type=type;
        this.content=content;
        this.userId=userId;
        this.handleTime=handleTime;
        this.status=status;
    }

    public Complaint(Long id,Integer status)
    {
        super(id);
        this.status=status;
    }
    public Complaint(Integer userId, String type, String content){
        this.type=type;
        this.content=content;
        this.userId=userId;
    }

}
